package com.nami.store.dubbo;

import com.nami.store.api.service.RemoteFriendService;
import com.nami.store.api.response.friend.FriendDTO;
import com.nami.store.biz.friend.application.FriendAppService;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * 描述：
 *
 * @Author: lbc
 * @Date: 2023-07-24 15:50
 * @email: 594599620@qq.com
 * @Description: keep coding
 */
@Slf4j
@DubboService
@Service
@RequiredArgsConstructor
public class RemoteFriendServiceImpl implements RemoteFriendService {

    private final FriendAppService friendAppService;

    @Override
    public FriendDTO getFriendInfo(String from, String to) {
        return friendAppService.getFriendInfo(from, to);
    }
}
